<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=, initial-scale=1.0">
    <title>鼠标经过更换背景</title>
    <style>
        .box{
            width: 400px;
            height: 400px;
            background-color: pink;
            background:url(./图片/蜘蛛侠.jpg) no-repeat center center;
            background-size: 100% 100%;
        }
        .box:hover{
            background:url(./图片/蜘蛛侠标.jpg) no-repeat center center;
            background-size: 100% 100%
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>